/*
 * xlibc/stdlib/ldiv.c
 */

#include <stdlib.h>

ldiv_t ldiv(long num, long den)
{
	return (ldiv_t){ num / den, num % den };
}
